package com.xiaobai.design_pattern.abstractfactory.createrole;

import com.xiaobai.design_pattern.abstractfactory.productrole.*;

/**
 * @author wangtw
 * @ClassName ConcreteFactory1
 * @description: 具体工厂2
 * @date 2023/11/2121:55
 */
public class ConcreteFactory2 implements AbstractFactory{

    @Override
    public ProductA factoryA() {
        return new ProductA2();
    }

    @Override
    public ProductB factoryB() {
        return new ProductB2();
    }
}
